package kr.deios.app.android.cm;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MobileUniversity extends Activity implements OnClickListener {
	private Button btnTimeTable;
	private Button btnYum;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        this.btnTimeTable = (Button)this.findViewById(R.id.btnTimeTable);
        this.btnTimeTable.setOnClickListener(this);
        this.btnYum = (Button)this.findViewById(R.id.btnYum);
        this.btnYum.setOnClickListener(this);
    }

	@Override
	public void onClick(View arg0) {
		int id = arg0.getId();
		if(id == R.id.btnTimeTable){
			Intent intnt = new Intent(this, TimeTableAct.class);
			startActivity(intnt);
		}else if(id == R.id.btnYum){
			Intent intnt = new Intent(this, DietAct.class);
			startActivity(intnt);
		}
		
	}
}